<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
        function blinklink() {
            if (!document.getElementById('message').style.color) {
                document.getElementById('message').style.color = "red"
            }
            if (document.getElementById('message').style.color == "red") {
                document.getElementById('message').style.color = "black"
            }
            else {
                document.getElementById('message').style.color = "red"
            }
            timer = setTimeout("blinklink()", 200)
        }

        function stoptimer() {
            clearTimeout(timer)
        }
    </script>
</head>

<body onload="blinklink()">
    <div id="message">Message</div>
</body>

</html>